package com.manpower.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * MpPayItem entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "mp_pay_item", catalog = "manpower")
public class MpPayItem implements java.io.Serializable {

	// Fields

	private String id;
	private MpPayStandard mpPayStandard;
	private MpPay mpPay;
	private Double payItemMonery;

	// Constructors

	/** default constructor */
	public MpPayItem() {
	}

	/** minimal constructor */
	public MpPayItem(String id) {
		this.id = id;
	}

	/** full constructor */
	public MpPayItem(String id, MpPayStandard mpPayStandard, MpPay mpPay,
			Double payItemMonery) {
		this.id = id;
		this.mpPayStandard = mpPayStandard;
		this.mpPay = mpPay;
		this.payItemMonery = payItemMonery;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 36)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "pay_standard_id")
	public MpPayStandard getMpPayStandard() {
		return this.mpPayStandard;
	}

	public void setMpPayStandard(MpPayStandard mpPayStandard) {
		this.mpPayStandard = mpPayStandard;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "pay_id")
	public MpPay getMpPay() {
		return this.mpPay;
	}

	public void setMpPay(MpPay mpPay) {
		this.mpPay = mpPay;
	}

	@Column(name = "pay_item_monery", precision = 22, scale = 0)
	public Double getPayItemMonery() {
		return this.payItemMonery;
	}

	public void setPayItemMonery(Double payItemMonery) {
		this.payItemMonery = payItemMonery;
	}

}